﻿<UserControl x:Class="OnlineBattlemat.UploadImageControl"
    xmlns="http://schemas.microsoft.com/client/2007" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Width="395" Height="245" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d">
    <Border>
        <Grid x:Name="LayoutRoot">
            <Grid.RowDefinitions>
                <RowDefinition Height="50" />
                <RowDefinition Height="109" />
                <RowDefinition Height="41" />
                <RowDefinition Height="55" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="395"/>
            </Grid.ColumnDefinitions>


            <Rectangle Stroke="#FF000000" RadiusX="15" RadiusY="15" Width="385" Grid.RowSpan="3" Opacity=".8" Margin="5,10,5,0">
                <Rectangle.Fill>
                    <LinearGradientBrush StartPoint="0,0" EndPoint=".25,.25">
                        <GradientStop Color="Sienna" Offset="0"/>
                        <GradientStop Color="Chocolate" Offset="1"/>
                    </LinearGradientBrush>
                </Rectangle.Fill>
            </Rectangle>

            <TextBlock Grid.Row="0" HorizontalAlignment="Left" Margin="15,20,0,0" FontWeight="Bold" FontSize="18" Text="Upload Image" />
            <TextBlock Grid.Row="0" HorizontalAlignment="Right" Margin="0,24,25,0" x:Name="x_ErrorLabel" Foreground="Black" />

            <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" Width="379" Margin="0,0,8,0">
                <StackPanel Grid.Row="1" HorizontalAlignment="Stretch" Margin="20,5,5,20" >

                    <StackPanel Orientation="Horizontal" d:LayoutOverrides="Width">
                        <TextBlock VerticalAlignment="Center" Margin="0,0,5,0" Text="Title" />
                        <TextBox x:Name="x_DescriptionTextBox" KeyDown="x_TextBoxes_KeyDown" Width="200" Height="25"/>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal" Grid.Row="1" VerticalAlignment="Bottom" Margin="0,0,0,0">
                        <TextBlock Text="Size" VerticalAlignment="Center" />
                        <RadioButton Content="1x" x:Name="x_Token1xRadioButton" IsChecked="True" GroupName="SizeGroup" Margin="10,0,5,0"/>
                        <RadioButton Content="2x" x:Name="x_Token2xRadioButton" GroupName="SizeGroup" Margin="5,0,5,0"/>
                        <RadioButton Content="3x" x:Name="x_Token3xRadioButton" GroupName="SizeGroup" Margin="5,0,5,0"/>
                    </StackPanel>

                    <Button x:Name="x_BrowseButton" Content="Browse..." Click="x_BrowseButton_Click" Width="100" Height="25" Margin="0,10,0,0" HorizontalAlignment="Right"/>
                </StackPanel>
                <Border x:Name="x_SelectedImageBorder" BorderBrush="Black" BorderThickness="1" Height="100" Width="100" VerticalAlignment="Center" Margin="0,0,10,0" />
            </StackPanel>

            <StackPanel Orientation="Horizontal" Grid.Row="2" HorizontalAlignment="Right" Margin="0,-9,25,0">
                <Button x:Name="x_UploadButton" Click="x_UploadButton_Click" Content="Upload" Width="100" Height="25"/>
                <Button x:Name="x_CancelButton" Click="x_CancelButton_Click" Content="Cancel" Width="100" Height="25" Margin="5,0,0,0"/>
            </StackPanel>

        </Grid>
    </Border>
</UserControl>
